import dt from '@dt/dt'
import table from '@/components/dt/table/render.js'
import nameOpt from '@/biz/option/name.js'

function options1(_this) {
  return [{
      title: '序号',
      type: 'index',
      minWidth: 60,
    },
    {
      title: '产品名称',
      field: 'productName',
      minWidth: 120,
    },
    {
      title: '房源名称',
      field: 'roomName',
      minWidth: 120,
    },
    {
      title: '工号',
      field: 'workNo',
      minWidth: 120,
    },
    {
      title: '姓名',
      field: 'userName',
      minWidth: 120,
    },
    {
      title: '岗位',
      field: 'postName',
      minWidth: 120,
    }, {
      title: '职级',
      field: 'rankName',
      minWidth: 120,
    },


    {
      field: 'bonusMoney',
      title: '应付奖金（元）',
      minWidth: 140,
    },
  ]
}

function options2(_this) {
  return [{
      title: '序号',
      type: 'index',
      minWidth: 120,
    },
    {
      title: '工号',
      field: 'workNo',
      minWidth: 120,
    },
    {
      title: '姓名',
      field: 'userName',
      minWidth: 120,
    }, {
      title: '在职状态',
      field: 'jobStatusStr',
      minWidth: 120,
    },
    {
      title: '岗位',
      field: 'postName',
      minWidth: 120,
    }, {
      title: '应付奖金（元）',
      field: 'bonusMoney',
      minWidth: 120,
    },
  ]
}

export default {
  options1,
  options2
}